﻿namespace DAQ.PROTOCOL
{
    using DAQ.Common;
    public class CONFIGURATION_READ
    {
        byte[] _bytes = new byte[22];
        public static byte[] GetSendBytes(byte Addr, byte[] data)
        {
            return BasicUtil.AppendChecksum(Addr, 0X37);
        }

        public CONFIGURATION_READ(byte[] srcbytes)
        {
            _bytes = srcbytes;
        }
        bool CWF2000{get{ return ((_bytes[0] << (1 << 0)) > 0); } }
        bool STOP_1 { get { return ((_bytes[1] << (1 << 0)) > 0); } }
        bool STOP_2 { get { return ((_bytes[1] << (1 << 1)) > 0); } }
        bool EXC_INPUT { get { return ((_bytes[2] << (1 << 1)) > 0); } }
        bool CODE_INPUT { get { return ((_bytes[2] << (1 << 0)) > 0); } }

        byte TAKE_UP_WORKING_MODE { get { return _bytes[4]; } }

    }
}
    

    


